<style scoped>

</style>
<template>
  <Select v-bind="$attrs"  v-on="myListeners">
    <Option v-for="(item,i) in options" :key="i" v-bind="item">{{item.label}}</Option>
  </Select>
</template>

<script>
export default {
  name: "starSelect",
  model:{
    prop:'value',
    event:'on-change'
  },
  props:{
    options: {
      default: () => {
        return []
      }
    },
  },
  computed:{
    myListeners(){
      let _this=this;
      return {
        ...this.$listeners,
        'on-change':function(val){
          _this.$emit('on-change',val,_this)
        }
      }
    }
  },
  methods:{

  }

}
</script>